package org.jeecg.modules.demo.com.kunpeng.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.com.kunpeng.entity.SupplierManagement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.demo.com.kunpeng.vo.SupplierManagementQueryListVO;
import org.springframework.stereotype.Repository;

/**
 * @Description: 供应商管理表
 * @Author: jeecg-boot
 * @Date:   2023-01-09
 * @Version: V1.0
 */
@Repository
public interface SupplierManagementMapper extends BaseMapper<SupplierManagement> {

    /**
     * 关键字查询
     * @param page
     * @param classification
     * @param keyWords
     * @return
     */
    List<SupplierManagementQueryListVO> queryListByKeyWords(Page<SupplierManagementQueryListVO>page,@Param("classification")String classification,@Param("keyWords")String keyWords);

    /**
     * 修改是否删除状态
     */
    int updateIsDelete(String id,String isDelete);

    /**
     * 根据供应商名称查询
     */
    List<SupplierManagement> queryListBySupplierName(String supplierName);
}
